package com.controller;

import com.common.Result;
import com.service.AttendanceService;
import com.vo.AttendanceQueryVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/attendance")
public class AttendanceController {

    @Resource
    private AttendanceService attendanceService;

    @PostMapping("")
    public Result queryAttendance(@RequestBody AttendanceQueryVo attendanceQueryVo) {
        return Result.success(attendanceService.queryAttendance(attendanceQueryVo));
    }
}
